﻿using SmartPlant.Model;
using SqlSugar;
using System;

namespace DbContext
{
    /// <summary>
    ///
    ///</summary>
    [SugarTable("TEMPERATURE")]
    public class Temperature:MetaDataEntity
    {
        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "SITE_ID")]
        public decimal SiteId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PLANT_ID")]
        public decimal PlantId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "AREA_ID")]
        public decimal AreaId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "UNIT_ID")]
        public decimal UnitId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "CHG_NUM")]
        public decimal ChgNum { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "USER_NAME")]
        public string UserName { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "CHG_STATUS")]
        public string ChgStatus { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "CHG_DATE")]
        public DateTime? ChgDate { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_ACCURACY")]
        public decimal? PdAccuracy { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_ACCURACY_UID")]
        public string PdAccuracyUid { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_T_RANGE_MIN")]
        public decimal? PdTRangeMin { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_T_RANGE_MAX")]
        public decimal? PdTRangeMax { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_T_RANGE_UID")]
        public string PdTRangeUid { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_T_ALARM_LOW")]
        public decimal? PdTAlarmLow
        {
            get
            {
                return _PdTAlarmLow;
            }
            set
            {
                _PdTAlarmLow = value;
                OnPropertyChanged(nameof(PdTAlarmLow));
            }

        }
        private decimal? _PdTAlarmLow;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_T_ALARM_LOW_LOW")]
        public decimal? PdTAlarmLowLow
        {
            get
            {
                return _PdTAlarmLowLow;
            }
            set
            {
                _PdTAlarmLowLow = value;
                OnPropertyChanged(nameof(PdTAlarmLowLow));
            }

        }
        private decimal? _PdTAlarmLowLow;
        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_T_ALARM_HIGH")]
        public decimal? PdTAlarmHigh
        {
            get
            {
                return _PdTAlarmHigh;
            }
            set
            {
                _PdTAlarmHigh = value;
                OnPropertyChanged(nameof(PdTAlarmHigh));
            }

        }
        private decimal? _PdTAlarmHigh;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_T_ALARM_HIGH_HIGH")]
        public decimal? PdTAlarmHighHigh
        {
            get
            {
                return _PdTAlarmHighHigh;
            }
            set
            {
                _PdTAlarmHighHigh = value;
                OnPropertyChanged(nameof(PdTAlarmHighHigh));
            }

        }
        private decimal? _PdTAlarmHighHigh;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_T_TRIP_LOW")]
        public decimal? PdTTripLow
        {
            get
            {
                return _PdTTripLow;
            }
            set
            {
                _PdTTripLow = value;
                OnPropertyChanged(nameof(PdTTripLow));
            }

        }
        private decimal? _PdTTripLow;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_T_TRIP_LOW_LOW")]
        public decimal? PdTTripLowLow
        {
            get
            {
                return _PdTTripLowLow;
            }
            set
            {
                _PdTTripLowLow = value;
                OnPropertyChanged(nameof(PdTTripLowLow));
            }

        }
        private decimal? _PdTTripLowLow;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_T_TRIP_HIGH")]
        public decimal? PdTTripHigh
        {
            get
            {
                return _PdTTripHigh;
            }
            set
            {
                _PdTTripHigh = value;
                OnPropertyChanged(nameof(PdTTripHigh));
            }

        }
        private decimal? _PdTTripHigh;


        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_T_TRIP_HIGH_HIGH")]
        public decimal? PdTTripHighHigh
        {
            get
            {
                return _PdTTripHighHigh;
            }
            set
            {
                _PdTTripHighHigh = value;
                OnPropertyChanged(nameof(PdTTripHighHigh));
            }

        }
        private decimal? _PdTTripHighHigh;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_T_TRIP_ALARM_UID")]
        public string PdTTripAlarmUid { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_T_TRAC_JACET")]
        public string PdTTracJacet { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_T_VALVTEND")]
        public decimal? PdTValvtend { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_T_CNTRL_PNT_MIN")]
        public decimal? PdTCntrlPntMin { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_T_CNTRL_PNT_MAX")]
        public decimal? PdTCntrlPntMax { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_T_CNTRL_PNT_NOR")]
        public decimal? PdTCntrlPntNor { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_T_CNTRL_PNT_UID")]
        public string PdTCntrlPntUid { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PROJ_ID")]
        public decimal ProjId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "CMPNT_ID", IsPrimaryKey = true)]
        public decimal CmpntId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_STAT", IsPrimaryKey = true)]
        public string PdStat { get; set; } = "R";

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "REV_ID")]
        public decimal RevId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "DWG_ID")]
        public decimal DwgId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_NOM_SIZE")]
        public string TmNomSize { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_TIP_DIAM")]
        public decimal? TmTipDiam { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_TIP_DIAM_UID")]
        public string TmTipDiamUid { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_FRQ_RATIO")]
        public decimal? TmFrqRatio { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_DENS_WELL_MAT")]
        public decimal? TmDensWellMat { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_DENS_WELL_MAT_UID")]
        public string TmDensWellMatUid { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_MOD_ELAST")]
        public decimal? TmModElast { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_MOD_ELAST_UID")]
        public string TmModElastUid { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_MOD_ELAST_UFLG")]
        public string TmModElastUflg { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_WELL_MAT")]
        public string TmWellMat { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_MAX_LENGTH")]
        public decimal? TmMaxLength { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_MAX_LENGTH_UID")]
        public string TmMaxLengthUid { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_CONST")]
        public decimal? TmConst { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_TEMP_RATIO")]
        public decimal? TmTempRatio { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_NAT_FREQ")]
        public decimal? TmNatFreq { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_WAKE_FREQ")]
        public decimal? TmWakeFreq { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_THERMOWELL_CALC")]
        public string TmThermowellCalc { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_ALLOW_STRESS_MAT")]
        public decimal? TmAllowStressMat { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_ALLOW_STRESS_MAT_UID")]
        public string TmAllowStressMatUid { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_STRESS_CONST_K1")]
        public decimal? TmStressConstK1 { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_STRESS_CONST_K2")]
        public decimal? TmStressConstK2 { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_STRESS_CONST_K3")]
        public decimal? TmStressConstK3 { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_MAGN_FACTOR")]
        public decimal? TmMagnFactor { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_MAX_ALLOW_PRESS")]
        public decimal? TmMaxAllowPress { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_MAX_STRESS_LEN")]
        public decimal? TmMaxStressLen { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_DENS_FLUID")]
        public decimal? TmDensFluid { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_DENS_FLUID_UID")]
        public string TmDensFluidUid { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "ENG_PROJ_ID")]
        public decimal? EngProjId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "ENG_REF_ID")]
        public decimal? EngRefId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PAGE")]
        public decimal? Page { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PAGEOF")]
        public decimal? Pageof { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_T_TRIP_HIGH_HIGH_HIGH")]
        public decimal? PdTTripHighHighHigh
        {
            get
            {
                return _PdTTripHighHighHigh;
            }
            set
            {
                _PdTTripHighHighHigh = value;
                OnPropertyChanged(nameof(PdTTripHighHighHigh));
            }

        }
        private decimal? _PdTTripHighHighHigh;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_T_TRIP_LOW_LOW_LOW")]
        public decimal? PdTTripLowLowLow
        {
            get
            {
                return _PdTTripLowLowLow;
            }
            set
            {
                _PdTTripLowLowLow = value;
                OnPropertyChanged(nameof(PdTTripLowLowLow));
            }

        }
        private decimal? _PdTTripLowLowLow;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_T_ALARM_HIGH_HIGH_HIGH")]
        public decimal? PdTAlarmHighHighHigh
        {
            get
            {
                return _PdTAlarmHighHighHigh;
            }
            set
            {
                _PdTAlarmHighHighHigh = value;
                OnPropertyChanged(nameof(PdTAlarmHighHighHigh));
            }

        }
        private decimal? _PdTAlarmHighHighHigh;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_T_ALARM_LOW_LOW_LOW")]
        public decimal? PdTAlarmLowLowLow
        {
            get
            {
                return _PdTAlarmLowLowLow;
            }
            set
            {
                _PdTAlarmLowLowLow = value;
                OnPropertyChanged(nameof(PdTAlarmLowLowLow));
            }

        }
        private decimal? _PdTAlarmLowLowLow;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_UNIT_PERCENT")]
        public string PdUnitPercent { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "CASE_ID", IsPrimaryKey = true)]
        public decimal CaseId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_GEN_ID")]
        public decimal PdGenId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_THERMOWELL_TYPE")]
        public decimal TmThermowellType { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_TW_CONN_TYPE")]
        public decimal TmTwConnType { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_FREQ_REQ")]
        public decimal TmFreqReq { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_CYC_STRESS_REQ")]
        public decimal TmCycStressReq { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_STATIC_STRESS_REQ")]
        public decimal TmStaticStressReq { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_DYNAMIC_STRESS_REQ")]
        public decimal TmDynamicStressReq { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_HYD_PRESS_REQ")]
        public decimal TmHydPressReq { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_OTHER_CONNECTION")]
        public string TmOtherConnection { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_OUT_DIAM_THERM")]
        public decimal? TmOutDiamTherm { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_OUT_DIAM_THERM_UID")]
        public string TmOutDiamThermUid { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_B")]
        public decimal? TmB { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_B_UID")]
        public string TmBUid { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_BS")]
        public decimal? TmBs { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_BS_UID")]
        public string TmBsUid { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_SIZE")]
        public decimal? TmSize { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_SIZE_UID")]
        public string TmSizeUid { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_MOD_ELAST_REF")]
        public decimal? TmModElastRef { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_MOD_ELAST_REF_UID")]
        public string TmModElastRefUid { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_MOD_ELAST_REF_UFLG")]
        public string TmModElastRefUflg { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_VORTEX_SHED_FREQ")]
        public decimal? TmVortexShedFreq { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_VORTEX_SHED_FREQ_UID")]
        public string TmVortexShedFreqUid { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_STEP_LENGTH")]
        public decimal? TmStepLength { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_STEP_LENGTH_UID")]
        public string TmStepLengthUid { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_REYN")]
        public decimal? TmReyn { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_NS")]
        public decimal? TmNs { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_NSC")]
        public decimal? TmNsc { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_FATIGUE_LIMIT")]
        public decimal? TmFatigueLimit { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_FATIGUE_LIMIT_UID")]
        public string TmFatigueLimitUid { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_FATIGUE_LIMIT_UFLG")]
        public string TmFatigueLimitUflg { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_TIP_THICKNESS")]
        public decimal? TmTipThickness { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_TIP_THICKNESS_UID")]
        public string TmTipThicknessUid { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_SENSOR_DENSITY")]
        public decimal? TmSensorDensity { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_SENSOR_DENSITY_UID")]
        public string TmSensorDensityUid { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_DAMPING_FACTOR")]
        public decimal? TmDampingFactor { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_ENV_FACTOR")]
        public decimal? TmEnvFactor { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_MOUNTING_FACTOR")]
        public decimal? TmMountingFactor { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_ALLOW_STRESS_MAT_UFLG")]
        public string TmAllowStressMatUflg { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_NAT_FREQ_UID")]
        public string TmNatFreqUid { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TM_CALC_STANDARD")]
        public decimal TmCalcStandard { get; set; }
    }
}